package com.fs.controller;

import com.fs.pojo.User;
import com.fs.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Classname UserInfoController
 * @Description TODO
 * @Date 2022/11/10 9:35
 * @Created by JiangMuyun
 */
public class UserInfoController {

    @Autowired
    private UserService userService;

    //改变昵称 暂未实现
    @RequestMapping("/changeNick")
    public int changeNick(String userid,String nickname){
        int i = userService.changeNick(userid, nickname);
        return i;
    }

    //改变头像 暂未实现
    @RequestMapping("/changeImage")
    public int changeImage(String userid,String faceImage){
        int i = userService.changeNick(userid, faceImage);
        return i;
    }
}
